<?php

class Secure_Form_Report extends Zend_Form
{
    public function __construct($options = null)
    {
        parent::__construct($options);
        $this->setName('espece');

        //$idespece = new Zend_Form_Element_Hidden('idespece');

       // ->addValidator();
        
        $campagne = new Zend_Form_Element_Select('report_campain');
		$campagne->setLabel('Campagne')
         ->setRequired(true)
         ->setAttrib("required","required")
         ->addFilter('StripTags')
         ->addFilter('StringTrim')
         ->addValidator('NotEmpty');
         
         
         $site = new Zend_Form_Element_Select('report_site');
		$site->setLabel('Site')
         ->setRequired(true)
         ->setAttrib("required","required")
         ->addFilter('StripTags')
         ->addFilter('StringTrim')
         ->addValidator('NotEmpty');
         
    	$file1 = new Zend_Form_Element_File('report_file1');
		$file1->setLabel('Fichier 1')
         ->setRequired(true)
         ->setAttrib("required","required")
         ->addFilter('StripTags')
         ->addFilter('StringTrim')
         ->addValidator('NotEmpty');
         
        $file2 = new Zend_Form_Element_File('report_file2');
		$file2->setLabel('Fichier 2')
         ->setRequired(true)
         ->setAttrib("required","required")
         ->addFilter('StripTags')
         ->addFilter('StringTrim')
         ->addValidator('NotEmpty');

 		
		$comment = new Zend_Form_Element_Textarea('report_comment');
		$comment->setLabel('Commentaires')
		->setAttrib("required","required")
		->setAttrib('cols', '70')
   		 ->setAttrib('rows', '5')
		->setRequired(true);
		
		
		
        $submit = new Zend_Form_Element_Submit('valider');
        $submit->setAttrib('id', 'submitbutton');
        
    
        $this->addElements(array($campagne, $site, $file1, $file2, $comment, $submit ));
        $this->setAction(Zend_Controller_Front::getInstance()->getBaseUrl().'/index/adduser');
    }
    
    
    
   
}